package com.xpsoft.oa.service.statistics.impl;


import org.springframework.beans.factory.annotation.Autowired;

import com.xpsoft.core.service.impl.BaseServiceImpl;
import com.xpsoft.oa.dao.statistics.MeetingApplyDao;
import com.xpsoft.oa.dao.statistics.MeetingEvaluationDao;
import com.xpsoft.oa.model.statistics.MeetingApply;
import com.xpsoft.oa.model.statistics.MeetingEvaluation;
import com.xpsoft.oa.service.statistics.MeetingEvaluationService;

public class MeetingEvaluationServiceImpl extends BaseServiceImpl<MeetingEvaluation> implements MeetingEvaluationService{
	private MeetingEvaluationDao dao;
	@Autowired
	private MeetingApplyDao meetingApplyDao;
	public MeetingEvaluationServiceImpl(MeetingEvaluationDao dao) {
		super(dao);
		this.dao=dao;
	}

	@Override
	public void saveMeetingEvaluation(MeetingEvaluation meetingEvaluation) {
		// TODO Auto-generated method stub
		dao.save(meetingEvaluation);
		MeetingApply meetingApply = meetingApplyDao.get(meetingEvaluation.getMeetingApply().getId());
		meetingApply.setStatus(1);//结束会议
		meetingApplyDao.save(meetingApply);
	}
	

}